<style>
	.block-mb15{
		display: inline-block;margin-bottom: 15px;
	}
</style>
<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>仓库信息</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/drug/addWarehouse" method="post">
						<span style="display:inline-block;margin-bottom: 10px;margin-left: 5px;"><span style="color: red">*</span>仓库编码：<input type="text" value="<?=$getData['warehouse_code']?>" placeholder="仓库编码" style="width:200px;" name="warehouse_code" class="warehouse_code">
						</span>
						<span class="block-mb15;" style="margin-left:10px;"><span style="color: red">*</span>仓库名称：<input type="text" value="<?=$getData['warehouse_name']?>" placeholder="仓库名称" style="width:200px" name="warehouse_name" class="warehouse_name">
						</span><br/>
						<span style="margin-left:24px;">联系人：<input type="text" value="<?=$getData['contacts']?>" placeholder="联系人" style="width:200px;" name="contacts" class="contacts">
						</span>
						<span class="block-mb15" style="margin-left:16px;">联系方式：<input type="text" value="<?=$getData['mobile']?>" placeholder="联系方式" style="width:200px" name="mobile" class="mobile">
						</span><br/>
						<span class="block-mb15" style="display:inline-block;margin-left:10px;margin-bottom: 10px;">仓库地址：<input type="text" value="<?=$getData['warehouse_address']?>" placeholder="仓库地址" style="width:504px" name="warehouse_address" class="warehouse_address">
						</span>
						<span class="block-mb15" style="margin-left:39px;">备注：<textarea id="textarea" style="width:505px;height:100px;margin-top:-15px;margin-left: 40px;resize: none" name="remark"><?=htmlspecialchars_decode($getData['remark'])?></textarea></span>
						<input type="hidden" value="<?=$getData['warehouse_id']?>" name="warehouse_id">
						<input type="hidden" value="1" name="dosubmit" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save" style="margin:18px 0 0 70px"><i class="icon-save"></i> 保存</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('#btn-save').click(function(){
		if($('input[name="warehouse_code"]').val() == ''){
            showmsg('请填写仓库编码！');
            return false;
		}else if($('input[name="warehouse_name"]').val() == ''){
			showmsg('请填写仓库名称！');
            return false;
        }else{
			setBtn($('#btn-save'));
			$('#formid').submit();
		}
	});
})
</script>